package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
/**
 * 优化建议信息对象 risk_goods_name_key_suggest
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-10-14
 */
@Data
public class RiskGoodsNameKeySuggest extends BaseEntity<RiskGoodsNameKeySuggest>
{
    private static final long serialVersionUID = 1L;

    /** 风险类型 */
    @Excel(name = "风险类型", dictType = "cargo_list_type")
    private Integer type;

    /** 关键词 */
    @Excel(name = "关键词")
    @NotBlank(message = "关键词不允许为空")
    private String keywords;

    /** 特货代码 */
    @Excel(name = "特货代码")
    private String specialCode;

    /** 状态 0 未审核 1 审核通过 2 审核拒绝 */
    @Excel(name = "状态 0 未审核 1 审核通过 2 审核拒绝 3 确认通过 4 确认不通过")
    private Integer status;

    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    public void setKeywords(String keywords)
    {
        this.keywords = keywords;
    }

    public String getKeywords()
    {
        return keywords;
    }

    public void setSpecialCode(String specialCode)
    {
        this.specialCode = specialCode;
    }

    public String getSpecialCode()
    {
        return specialCode;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("type", getType())
            .append("keywords", getKeywords())
            .append("specialCode", getSpecialCode())
            .append("status", getStatus())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
